const XMLWebpackPlugin = require('xml-webpack-plugin');
const path = require('path');

const xmlFiles = [
    {
        template: path.join(__dirname, 'plist.ejs'),
        filename: 'plist.xml',
        data: {
            url: 'https://obj.51baopen.com/app/app-release_0.51.3_21.11.20_v1.ipa',
            identifier: 'org.reactjs.native.example.youneiquan',
            version: '0.51.3',
            title: '优内券'
        }
    }
];

module.exports = {
    publicPath: '/appdown/',
    configureWebpack: {
        plugins: [
            new XMLWebpackPlugin({
                files: xmlFiles
            })
        ]
    }
};